<!DOCTYPE html>
<!--[if IE 9 ]><html class="ie ie9" lang="en" class="no-js"> <![endif]-->
<!--[if !(IE)]><!-->
<html lang="en" class="no-js">
    <!--<![endif]-->
    <head>
        <title>Agência Voxel | Administração - <?php echo $title; ?></title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="description" content="Kingboard - Bootstrap Admin Dashboard Theme">
        <meta name="author" content="The Develovers">
        <?php echo $this->Html->css('/css/bootstrap.min.css'); ?>
        <?php echo $this->Html->css('/css/bootstrap-theme.min.css'); ?>
        <?php echo $this->Html->css('/css/font-awesome.min.css'); ?>
        <?php echo $this->Html->css('/css/main.css'); ?>
    </head>
    <body class="dashboard" style="font-family: 'latolight'; font-size: 1.5em;">
        <div class="wrapper">
            <div class="top-bar">
                <div class="container">
                    <div class="row">
                        <div class="col-md-2 logo">
                            <?php echo $this->Html->link($this->Html->image('/img/Logo.png', array('style' => 'width: 150px; margin-bottom: 15px;')), '/admin', array('escape' => FALSE)); ?>
                            <h1 class="sr-only">Agência Voxel  - Adminstração</h1>
                        </div>
                        <div class="col-md-10">
                            <div class="row">
                                <div class="col-xs-12">
                                    <div class="top-bar-right">
                                        <div class="logged-usuario">
                                            <div class="btn-group">
                                                <a style="font-size: 1em;" href="index.html#" class="btn btn-link dropdown-toggle" data-toggle="dropdown">
                                                    <i class="fa fa-cogs"></i>
                                                    <span class="name"><?php echo $this->Session->read('Auth.Usuario.username'); ?></span>
                                                    <span class="caret"></span>
                                                </a>
                                                <ul class="dropdown-menu" role="menu">
                                                    <li>
                                                        <?php echo $this->Html->link('<i class="fa fa-user"></i><span class="text"> Perfil</span>', '/admin/usuarios/usuarios/edit/' . $this->Session->read('Auth.User.id'), array('escape' => FALSE)); ?>                                                        
                                                    </li>
                                                    <li>
                                                        <?php echo $this->Html->link('<i class="fa fa-cogs"></i><span class="text"> Configuração</span>', '/admin/configuracoes', array('escape' => FALSE)); ?>                                                        
                                                    </li>
                                                    <li>
                                                        <?php echo $this->Html->link('<i class="fa fa-globe"></i><span class="text"> Ver site</span>', '/', array('target' => '_blank', 'escape' => FALSE)); ?>                                                        
                                                    </li>
                                                    <li>
                                                        <?php echo $this->Html->link('<i class="fa fa-power-off"></i><span class="text"> Sair</span>', '/logout', array('escape' => FALSE)); ?>                                                        
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bottom">
                <div class="container">
                    <div class="row">
                        <div class="col-md-2 left-sidebar">
                            <nav class="main-nav">
                                <ul class="main-menu">
                                    <li class="active">
                                        <?php echo $this->Html->link('<i class="fa fa-dashboard fa-fw"></i><span class="text">Dashboard</span>', '/admin', array('escape' => FALSE)); ?>
                                    </li>
                                    <li>
                                        <a href="#" class="js-sub-menu-toggle">
                                            <i class="fa fa-th-list"></i>
                                            <span class="text">Conteudos</span>
                                            <i class="toggle-icon fa fa-angle-left"></i>
                                        </a>
                                        <ul class="sub-menu ">
                                            <li>
                                                <?php echo $this->Html->link('<i class="fa fa-search"></i><span class="text">Consultar</span>', '/admin/conteudos/conteudos/index', array('escape' => FALSE)); ?>
                                            </li>
                                            <li>
                                                <?php echo $this->Html->link('<i class="fa fa-file-o"></i><span class="text">Cadastrar</span>', '/admin/conteudos/conteudos/add', array('escape' => FALSE)); ?>
                                            </li>
                                            <li>
                                                <?php echo $this->Html->link('<i class="fa fa-search"></i><span class="text">Categoria Consultar</span>', '/admin/conteudos/conteudos_categorias/index', array('escape' => FALSE)); ?>
                                            </li>
                                            <li>
                                                <?php echo $this->Html->link('<i class="fa fa-file-o"></i><span class="text">Categoria Cadastrar</span>', '/admin/conteudos/conteudos_categorias/add', array('escape' => FALSE)); ?>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="#" class="js-sub-menu-toggle">
                                            <i class="fa fa-th-list"></i>
                                            <span class="text">Paginas</span>
                                            <i class="toggle-icon fa fa-angle-left"></i>
                                        </a>
                                        <ul class="sub-menu ">
                                            <li>
                                                <?php echo $this->Html->link('<i class="fa fa-search"></i><span class="text">Consultar</span>', '/admin/paginas/paginas/index', array('escape' => FALSE)); ?>
                                            </li>
                                            <li>
                                                <?php echo $this->Html->link('<i class="fa fa-file-o"></i><span class="text">Cadastrar</span>', '/admin/paginas/paginas/add', array('escape' => FALSE)); ?>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="#" class="js-sub-menu-toggle">
                                            <i class="fa fa-th-list"></i>
                                            <span class="text">Usuários</span>
                                            <i class="toggle-icon fa fa-angle-left"></i>
                                        </a>
                                        <ul class="sub-menu ">
                                            <li>
                                                <?php echo $this->Html->link('<i class="fa fa-search"></i><span class="text">Consultar</span>', '/admin/usuarios/usuarios/index', array('escape' => FALSE)); ?>
                                            </li>
                                            <li>
                                                <?php echo $this->Html->link('<i class="fa fa-file-o"></i><span class="text">Cadastrar</span>', '/admin/usuarios/usuarios/add', array('escape' => FALSE)); ?>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </nav>
                            <div class="sidebar-minified js-toggle-minified">
                                <i class="fa fa-angle-left"></i>
                            </div>
                        </div>
                        <div class="col-md-10 content-wrapper">
                            <div class="row">
                                <div class="col-md-12">
                                    <?php
                                    echo $this->Html->getCrumbList(array('class' => 'breadcrumb'));
                                    ?>
                                </div>
                            </div>
                            <div class="content">
                                <div class="msg_sistema"><?php echo $this->Session->flash(); ?></div>
                                <div class="main-header">
                                    <h2><?php echo $title; ?></h2>
                                </div>
                                <div class="main-content">
                                    <?php echo $this->fetch('content'); ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php echo $this->Html->script('/js/jquery-2.1.0.min.js'); ?>
        <?php echo $this->Html->script('/js/bootstrap.min.js'); ?>
        <?php echo $this->Html->script('/js/modernizr.js'); ?>
        <?php echo $this->Html->script('/js/bootstrap-tour.custom.js'); ?>
        <?php echo $this->Html->script('/js/king-common.min.js'); ?>
        <?php echo $this->Html->script('/js/stat/jquery.easypiechart.min.js'); ?>
        <?php echo $this->Html->script('/js/raphael-2.1.0.min.js'); ?>
        <?php echo $this->Html->script('/js/stat/flot/jquery.flot.min.js'); ?>
        <?php echo $this->Html->script('/js/stat/flot/jquery.flot.resize.min.js'); ?>
        <?php echo $this->Html->script('/js/stat/flot/jquery.flot.time.min.js'); ?>
        <?php echo $this->Html->script('/js/stat/flot/jquery.flot.pie.min.js'); ?>
        <?php echo $this->Html->script('/js/stat/flot/jquery.flot.tooltip.min.js'); ?>
        <?php echo $this->Html->script('/js/jquery.sparkline.min.js'); ?>
        <?php echo $this->Html->script('/js/jquery.mapael.js'); ?>
        <?php echo $this->Html->script('/js/maps/usa_states.js'); ?>
        <?php echo $this->Html->script('/js/king-chart-stat.min.js'); ?>
        <?php echo $this->Html->script('/js/king-components.min.js'); ?>
        <?php echo $this->fetch('css'); ?>
        <?php echo $this->fetch('script'); ?>
    </body>
</html>